<?php

/**
 * @author      Nguyen Duc Thuan <me@ndthuan.com>
 * @copyright   Copyright (c) 2009 Nguyen Duc Thuan <me@ndthuan.com>
 */
class Fete_View_Helper_HeadLinkCss extends Fete_View_Helper_HeadLink
{
    public function &headLinkCss($href = null, $media = 'all')
    {
        if (null !== $href) {
            $this->appendFile($href, $media);
        }

        return $this;
    }

    public function &prependFile($href, $media = 'all')
    {
        parent::prependLink($href, 'text/css', array('media' => $media, 'rel' => 'stylesheet'));

        return $this;
    }

    public function &appendFile($href, $media = 'all')
    {
        parent::appendLink($href, 'text/css', array('media' => $media, 'rel' => 'stylesheet'));

        return $this;
    }
}